package cn.huangsm.advance.mongodb;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author huang
 * @PACKAGE_NAME cn.huangsm.advance.mongodb
 * @PROJECT_NAME advance-code
 * @date 2019/1/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class User implements Serializable {
    private String _id;
    private String name;
    private String sex;
    private String userId;
    private String image;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthday;

}
